import Vue from 'vue'
import VueRouter from 'vue-router'
import Skeleton from '../views/skeleton.vue'
import Test from '../skeleton/page/skeleton.vue'
import Demo1 from '../views/demo1.vue';
import Demo2 from '../views/demo1.vue';
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Skeleton',
    component: Skeleton
  },
  {
    path: '/test',
    name: 'test',
    component: Test,
  },
  {
    path: '/demo1',
    name: 'demo1',
    component: Demo1,
  },
  {
    path: '/demo2',
    name: 'demo2',
    component: Demo2,
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
